package com.zhangshuo.patternDesign.flyweight;

/**
 * Created by shuo.zhang on 2017-10-27.
 */
public class Role {
    private AbstractHero hero ;
    public Role(AbstractHero hero){
        this.hero = hero;
    }

    private String hp;
    private String mp;

    public String getHp() {
        return hp;
    }

    public void setHp(String hp) {
        this.hp = hp;
    }

    public String getMp() {
        return mp;
    }

    public void setMp(String mp) {
        this.mp = mp;
    }

    public void realseSkill(int index){
        hero.realeaseSkill(index);
    }

    public void commonAttack(){
        hero.commonAttack();
    }


}
